package com.bao.work.work05;

/**
 * @author baoye
 * @date 2024-07-29/19:31
 */
public class TesStudentsTool {
    public static void main(String[] args) {
        Student[] students=new Student[5];
        students[0]=new Student("小蔡",15,55.5);
        students[1]=new Student("中蔡",25,75.5);
        students[2]=new Student("大蔡",35,85.5);
        students[3]=new Student("老蔡",65,45.5);
        students[4]=new Student("五蔡",95,35.5);

        StudentsTool studentsTool=new StudentsTool();
        studentsTool.listStudents(students);

        System.out.println("最高分:"+studentsTool.getMaxScore(students));
        System.out.println("最高分的学生:"+studentsTool.getMaxStudent(students).getName());
        System.out.println("平均分:"+studentsTool.getAverageScore(students));
        System.out.println("不及格人数:"+studentsTool.getCount(students));
    }
}
